package com.itheima.domain.mongo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.bson.types.ObjectId;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

/**
 * @author 阿鹏
 * @date 2021/2/25 1:31
 */

@Data
@AllArgsConstructor
@NoArgsConstructor
@Document(collection = "peachblossom_sound")
public class Sound implements Serializable {

    /**
     * 主键id
     */
    private ObjectId id;

    /**
     * 发布的用户id
     */
    private Long userId;

    /**
     * 语音链接
     */
    private String soundUrl;

    /**
     * 发布时间
     */
    private Date created;


}
